<?php include '../view/heading.php'; ?>
<div id="Inhalt">
    <!-- display content -->
    <div class="warnMessage"> <?php echo $login_message ?></div>
    <div id="stylized" class="myform">
        <form action="." method="post" id="login_form" class="aligned">
            <h1>Login</h1>

            <fieldset>
                <legend>Anmeldung</legend>
                <input type="hidden" name="action" value="login"/>
                <table>
                    <tr>
                        <td><label for="nickname">Benutzername *: <span class="small"></span></label></td>
                        <td><span class="info" title="Tragen Sie Ihren Benutzername ein.">i</span><td>
                        <td><input type="text" id="nickname" name="nickname"  value="<?php if (!empty($vorname)) echo $vorname; ?>" size="50" maxlength="50"></td>
                    </tr>
                    <tr>
                        <td><label for="password">Passwort *: <span class="small"></span></label></td>
                        <td><span class="info" title="Tragen Sie Ihren Passwort ein.">i</span><td>
                        <td><input type="password" id="password" name="password"  value="<?php if (!empty($nachname)) echo $nachname; ?>" size="50" maxlength="50"></td>
                    </tr>
                </table>
            </fieldset>
            <button type="submit" name="submit">Anmelden</button>
            <div class="spacer"></div>
        </form>
        <p>Falls Sie Ihr Passwort vergessen haben können Sie es <a href="../resetpw/resetpw.php">zurücksetzen.</a> </p>
    </div>
</div>
<?php include '../view/footing.php'; ?>
            
